import tensorflow as tf
# from network_function import mymodel_test
from tensorflow import keras

# loadmodel_name = 'bestmodel_fconv_3_all_features'
# model = keras.models.load_model(loadmodel_name)

keras_file = "body_recognition_1dconv.h5"
# keras.models.save_model(model, keras_file)

converter = tf.lite.TFLiteConverter.from_keras_model_file(keras_file)
tflite_model = converter.convert()
open("body_recognition_1dconv.tflite", "wb").write(tflite_model)
